﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Client
{
    public class Auction
    {
        private string name, winner;
        private int id, minimumBid, bid, hammerTime = 0;
        private bool exist = true;

        /// <summary>
        /// Creates an Auction object
        /// </summary>
        /// <param name="id">ID of the auction</param>
        /// <param name="name">Name of the auction</param>
        /// <param name="minimumBid">The auctions minimum price</param>
        /// <param name="bid">Current bid</param>
        public Auction(int id, string name, int minimumBid, int bid)
        {
            this.id = id;
            this.name = name;
            this.minimumBid = minimumBid;
            this.bid = bid;
        }

        #region Properties
        public int Id
        {
            get { return id; }
        }
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public int MinimumBid
        {
            get { return minimumBid; }
        }
        public int Bid
        {
            get { return bid; }
            set { bid = value; }
        }
        public int HammerTime
        {
            get { return hammerTime; }
            set { hammerTime = value; }
        }
        public bool Exist
        {
            get { return exist; }
            set { exist = value; }
        }
        public string Winner
        {
            get { return winner; }
            set { winner = value; }
        }
        #endregion
    }
}
